//
//  YYplayerVC.h
//  K-Music
//
//  Created by 林杰良 on 15/12/29.
//  Copyright © 2015年 CHUN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "A_Music.h"
#import "UIImageView+WebCache.h"

#import "GuiBin.h"


#import "Track.h"
#import "DOUAudioStreamer.h"
#import "DOUAudioVisualizer.h"


static void *kStatusKVOKey = &kStatusKVOKey;
static void *kDurationKVOKey = &kDurationKVOKey;
static void *kBufferingRatioKVOKey = &kBufferingRatioKVOKey;


@interface YYplayerVC : UIViewController
{
@private
    UILabel *_titleLabel;
    UILabel *_statusLabel;
    UILabel *_miscLabel;
    
    UIButton *_buttonPlayPause;
    UIButton *_buttonNext;
    UIButton *_buttonStop;
    
    UISlider *_progressSlider;
    
    UILabel *_volumeLabel;
    UISlider *_volumeSlider;
    
    NSUInteger _currentTrackIndex;
    NSTimer *_timer;
    
    DOUAudioStreamer *_streamer;
    DOUAudioVisualizer *_audioVisualizer;
}

@property (nonatomic,copy) NSArray *tracks;
@property(nonatomic,strong)A_Music*musicData;
@end
